package com.example.communist_app_api.service;

import com.example.communist_app_api.db.dto.UserOrganizationDTO;
import com.example.communist_app_api.db.pojo.User;
import com.example.communist_app_api.db.pojoDto.Organization;

import java.util.List;

public interface UserOrganizationService {
    Integer joinCommunistByOrganizationIdAndUserId(Integer organizationId, Integer userId);

    String selectOrganizationNameByUserId(Integer userId);

    Organization getOrganizationByUserId(Integer id);

<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> 党建uniapp/dev
    List<User> getAllUserByOrganizationIdBySelect(Integer organizationIdBySelect);

    Integer getUserNumInOrganizationByOrganizationId(Integer organizationId);

    void transformRelationshipByUserIdAndOrganizationId(Integer userId, Integer organizationId);

    List<UserOrganizationDTO> getUserOrganizationListByUserIdList(List<Integer> userIdList);

<<<<<<< HEAD
    String getOrganizationLevelByUserId(Integer userId);

    List<Integer> getAllGeneralPartyBranchUserIdyBUserId(Integer userId);

    List<Integer> getAllUserIdByUserId(Integer userId);

    Integer getAnnouncerCountByOrganizationAndUserId(Integer userId);
<<<<<<< HEAD
    /**
     * 通过userId判断组织是党支部还是党总支，获取用户idList
     * @param userId
     * @return
     */
    List<Integer> getUserIdListInCommunityByUserId(Integer userId);
=======
    int getOrganizationIdByUserId(Integer userId);
>>>>>>> ead867a76a2d61b0673929f4330d549b1f515bf4
=======
    int getOrganizationIdByUserId(Integer userId);
>>>>>>> 党建uniapp/dev
=======
>>>>>>> parent of aec1d46 (消息模块的搭建和配合其他模块消息的发送和收取)
}
